home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Interactive Reference Guide / C-C++ Interactive Reference Guide.iso / c_ref / csource4 / 221_01 / toupper.c < prev   
Text File  |  1979-12-31  |  256b  |  9 lines

  1. #include stdio.h
  2. /*
  3. **  convert c to uppercase
  4. */
  5. toupper(c) char c; {
  6.   if(islower(c) & isalpha(c)) return(c-32);
  7.   else return c;
  8.   }
  9.